export const addDepartmentEntityRles = {
  parentId: [
    {
      message: "父部门不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  companyName: [
    {
      message: "部门名称不能为空",
      required: true,
      trigger: "blur",
    },
  ],
  leader: [
    {
      message: "部门负责人不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  phone: [
    {
      message: "负责人联系电话不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  sort: [
    {
      message: "部门排序不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  pcdCode: [
    {
      message: "省市区不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  address: [
    {
      message: "部门地址不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  isEnable: [
    {
      message: "部门启用状态不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
};

export const updateDepartmentEntityRles = {
  parentId: [
    {
      message: "父部门不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  companyName: [
    {
      message: "部门名称不能为空",
      required: true,
      trigger: "blur",
    },
  ],
  leader: [
    {
      message: "部门负责人不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  phone: [
    {
      message: "负责人联系电话不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  sort: [
    {
      message: "部门排序不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  pcdCode: [
    {
      message: "省市区不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  address: [
    {
      message: "部门地址不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
  isEnable: [
    {
      message: "部门启用状态不允许为空",
      required: true,
      trigger: "blur",
    },
  ],
};
